<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>client</title>
    <link rel="icon" type="image/GIF" href="res/fish.ico"/>
    <meta name="viewport" content="initial-scale=1">
    <meta name="apple-mobile-web-app-capable" content="yes"/>
    <meta name="full-screen" content="yes"/>
    <meta name="screen-orientation" content="portrait"/>
    <meta name="x5-fullscreen" content="true"/>
    <meta name="360-fullscreen" content="true"/>
    <style>
        body, canvas, div {
            -moz-user-select: none;
            -webkit-user-select: none;
            -ms-user-select: none;
            -khtml-user-select: none;
            -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
        }
    </style>
</head>
<body style="padding:0; margin: 0; background: #fff;">
<p style="color: #000;">teshi</p>
<a href="/player">大厅</a><br>
<a href="/crab">螃蟹</a><br>
<a href="itms-services://?action=download-manifest&url=http://jamma.3322.org:8000/ios/player-mobile.plist" id="text">Install the In-House App</a><br>
<input type="button" value="121323" onclick="test()"></input>  
<script>
	function test(){
	var ua = navigator.userAgent; 
        var ipad = ua.match(/(iPad).*OS\s([\d_]+)/), 
        isIphone = ua.match(/(iPhone\sOS)\s([\d_]+)/), 
        isIpod = ua.match(/iPod/i), 
        isAndroid = ua.match(/(Android)\s+([\d.]+)/); 
        if(isIphone) { 
            window.location.href="itms-services://?action=download-manifest&url=http://jamma.3322.org:8000/ios/player-mobile.plist"; 
        }else if(ipad){ 
            window.location.href="itms-services://?action=download-manifest&url=http://jamma.3322.org:8000/ios/player-mobile.plist"; 
        }else if(isIpod){ 
            window.location.href="itms-services://?action=download-manifest&url=http://jamma.3322.org:8000/ios/player-mobile.plist"; 
        } 
        else{ 
            alert('亲爱的玩家，请使用苹果移动设备在浏览器输入即可下载。'); 
        } 
	}
</script>

</body>
</html>
